package jam.network.message;

import jam.model.*;
import jam.network.*;
import java.util.*;

//
// =============================================================================
//

/**
 * Class for the login action.
 */
public class ClientActionLogout extends ClientCommand {
    protected static final String KEYWORD = "CA_LOGOUT";
    
    //
    // =========================================================================
    //
    
    /**
     * Processes the message. Logs the user in and all that.
     */
    @Override
    public void process(ClientController controller) {
        controller.disconnect();
    }
    
    //
    // =========================================================================
    //
    
    @Override
    protected String getKeyword() { 
        return ClientActionLogout.KEYWORD; 
    }
    
    //
    // =========================================================================
    //
    
    /**
     * Constructor. Processes the data string.
     *
     * @param transactionId The identification number for this particular message.
     * @param args A scanner with the arguments
     */
    protected ClientActionLogout(int transactionId, Scanner args) {
        super(transactionId);
    }
}
